/*-----------------------------------------------------------------------------
 * stock_server_update_process.h - Header for stock server analysis and 
 *                                 transaction processing routines + data 
 *                                 structures
 *
 * March 2010, Forhad Ahmed
 *-----------------------------------------------------------------------------
 */

#ifndef _STOCK_SERVER_UPDATE_PROCESS_
#define _STOCK_SERVER_UPDATE_PROCESS_

#include <pthread.h>
#include "common/include/stock_common.h"
#include "common/include/stock_update.h"

typedef struct stock_server_update_stats_t {
    uint32_t updates_recieved;
    uint32_t dropped_malformed;
    uint32_t dropped_unsynchronized;
} stock_server_update_stats_t;

extern pthread_t stock_server_update_process_thread;

void *
stock_server_update_process(void *args);


#endif /* _STOCK_SERVER_PROCESS_ */
